package com.usian.usianleadonewsuser.feing;

import com.usian.model.article.ApAuthor;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.pojos.WmUser;
import io.swagger.models.auth.In;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("leadnews-article")
public interface ArticleFeing {
    @RequestMapping("/article/api/findByid/{id}")
    public WmUser findByid(@PathVariable(value = "id") Integer id);

    @RequestMapping("/article/api/save")
    public ResponseResult add(@RequestBody ApAuthor apAuthor);

    @RequestMapping("/article/api/findByidApAuthor/{id}")
    public ApAuthor findByidApAuthor(@PathVariable(value = "id") Integer id);
}
